home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / games_d / gmsb28.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1994-01-08  |  4KB  |  96 lines

  1. echo off 
  2. cls
  3. break on
  4. if %0==a:install goto adrive
  5. if %0==A:install goto adrive
  6. if %0==A:INSTALL goto adrive
  7. if %0==b:install goto bdrive
  8. if %0==B:install goto bdrive
  9. if %0==B:INSTALL goto bdrive
  10. if %0==install goto doinstall
  11. if %0==INSTALL goto doinstall
  12. echo Please switch to the drive you wish to install from before
  13. echo starting install.  For example, to install from the B: drive,
  14. echo Enter         B:
  15. echo Then enter    INSTALL %1
  16. goto End
  17. :adrive
  18. a:
  19. goto makedir
  20. :bdrive
  21. b:
  22. goto makedir
  23. :doinstall
  24. if "%1"=="" goto DriveNeeded
  25. if exist %1\*.* goto makedir
  26. :InvalidDrive
  27. echo "%1" is an invalid drive name.  Please use the correct drive letter
  28. echo followed by a colon:
  29. :DriveNeeded
  30. echo Please specify which drive to install Super Edition XXVIII to,
  31. echo for example:
  32. :Example
  33. echo.
  34. echo         install c:
  35. goto End
  36. :MakeDir
  37. echo ╔════════════════════════════════════════════════════════════════╗
  38. echo ║                                                                ║
  39. echo ║                        GAMBLER'S MATE                          ║
  40. echo ║                  Super Bowl Edition XXVIII                     ║
  41. echo ║                      Copyright (c) 1994                        ║
  42. echo ║                       By Mark E. Savey                         ║
  43. echo ║                     Disk Install Utility                       ║
  44. echo ║                                                                ║
  45. echo ║                                                                ║
  46. echo ║  This program will install all files into a directory called   ║
  47. echo ║  "\GM\SB28" on drive %1.  If you do not wish to do this, then  ║
  48. echo ║  press Ctrl-C then "Y" now.                                    ║
  49. echo ║                                                                ║
  50. echo ╚════════════════════════════════════════════════════════════════╝
  51. echo.
  52. pause
  53. echo.
  54. echo Checking for existence of %1\GM\SB28...
  55. if exist %1\GM\SB28\*.* goto DirExists
  56. if not exist %1\GM\*.* goto makeit
  57. goto carryon
  58. :makeit
  59. md %1\GM > NUL
  60. :carryon
  61. echo.
  62. echo Making appropriate Super Bowl Edition XXVIII directories...
  63. md %1\GM\SB28 > NUL
  64. echo Everything is OK.  %1\GM\SB28 present!
  65. goto CopyFiles
  66. :DirExists
  67. echo WARNING:  The directory %1\GM\SB28 already exists.  Press Ctrl-C then
  68. echo           "Y" now if you don't want to overwrite the contents of that
  69. echo           directory.
  70. echo.
  71. pause
  72. echo.
  73. :CopyFiles
  74. echo.
  75. echo Extracting and copying "Super Bowl Edition XXVIII" files to %1\GM\SB28...
  76. copy/v *.* %1\GM\SB28
  77. if not exist %1\GM\SB28\SB.EXE goto InstallError
  78. cls
  79. echo ╔═══════════════════════════════════════════════════════════════════════════╗
  80. echo ║                                                                           ║
  81. echo ║  Super Bowl Ed. XXVIII has been successfully installed to your %1 drive.  ║
  82. echo ║                                                                           ║
  83. echo ║      To run Super Bowl Edition XXVIII type  'SB28'  and press ENTER.      ║
  84. echo ║                                                                           ║
  85. echo ╚═══════════════════════════════════════════════════════════════════════════╝
  86. %1
  87. cd %1\GM\SB28
  88. goto End
  89. :InstallError
  90. echo ERROR:  Installation of Super Bowl Ed. XXVIII into %1\GM\SB28 was unsuccessful.
  91. echo         This could be caused because your %1 drive is full or unaccessible.
  92. echo         The Super Bowl Edition needs about 133K of free disk space.
  93. echo.
  94. :End
  95. echo.
  96.